# Maintainer:
pkgname=py3-exifread
_pkgname=ExifRead
pkgver=2.3.2
pkgrel=2
pkgdesc="Read Exif metadata from tiff and jpeg files"
options="!check" # No testsuite
url="https://github.com/ianare/exif-py"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/ianare/exif-py/archive/$pkgver.tar.gz"
builddir="$srcdir"/exif-py-$pkgver

replaces="py-exifread" # Backwards compatibility
provides="py-exifread=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare
	sed -i "s/2.1.2/$pkgver/" exifread/__init__.py
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d37cc6a70793aa894947b1b24f973ff2f9c15ba3dfe99674c5ea61e5a469b259035fc48a1d2c4d4d7021289bad431e57a4e137e2d4feb0c5352b0b162e61376a  py3-exifread-2.3.2.tar.gz"
